package com.xone.xapp;

import org.json.JSONObject;

public class SubscribeListUserHolder extends BasicListHolder {
	protected String id;
	protected String marketarea;
	protected String productNameKey;
	protected String saleType;
	protected String credit;
	protected String saleTypeName;
	protected String creditName;
	protected String lastUpdated;
	protected String dateCreated;
	public SubscribeListUserHolder(JSONObject o) {
		id = JSONUtils.getStringFromJSONObject(o, "id");
		lastUpdated = StringUtils.formatStringDate(JSONUtils.getStringFromJSONObject(o, "lastUpdated"));
		dateCreated = StringUtils.formatStringDate(JSONUtils.getStringFromJSONObject(o, "dateCreated"));
		marketarea = JSONUtils.getStringFromJSONObject(o, "marketarea");
		productNameKey = JSONUtils.getStringFromJSONObject(o, "productNameKey");
		saleType = JSONUtils.getStringFromJSONObject(o, "saleType");
		credit = JSONUtils.getStringFromJSONObject(o, "credit");
		saleTypeName = JSONUtils.getStringFromJSONObject(o, "saleTypeName");
		creditName = JSONUtils.getStringFromJSONObject(o, "creditName");
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getMarketarea() {
		return marketarea;
	}
	public void setMarketarea(String marketarea) {
		this.marketarea = marketarea;
	}
	public String getProductNameKey() {
		return productNameKey;
	}
	public void setProductNameKey(String productNameKey) {
		this.productNameKey = productNameKey;
	}
	public String getSaleType() {
		return saleType;
	}
	public void setSaleType(String saleType) {
		this.saleType = saleType;
	}
	public String getCredit() {
		return credit;
	}
	public void setCredit(String credit) {
		this.credit = credit;
	}
	public String getSaleTypeName() {
		return saleTypeName;
	}
	public void setSaleTypeName(String saleTypeName) {
		this.saleTypeName = saleTypeName;
	}
	public String getCreditName() {
		return creditName;
	}
	public void setCreditName(String creditName) {
		this.creditName = creditName;
	}
	public String getLastUpdated() {
		return lastUpdated;
	}
	public void setLastUpdated(String lastUpdated) {
		this.lastUpdated = lastUpdated;
	}
	public void setDateCreated(String dateCreated) {
		this.dateCreated = dateCreated;
	}
	@Override
	public String getDateCreated() {
		return dateCreated;
	}
	@Override
	public String getDataCreatedName() {
		return "subscribe.dateCreated";
	}

}
